<template>
  <div>
      <!-- 系统名称 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          组织机构:
        </el-col>
        <el-col :span="12">
          <el-input
            placeholder="请输入内容"
            v-model="input"
            clearable>
          </el-input>
        </el-col>
    </el-row>

      <!-- 姓名 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          姓名:
        </el-col>
        <el-col :span="12">
          <el-input
            placeholder="请输入内容"
            v-model="input"
            clearable>
          </el-input>
        </el-col>
    </el-row>

      <!-- 用户名 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          用户名:
        </el-col>
        <el-col :span="12">
          <el-input
            placeholder="请输入内容"
            v-model="input"
            clearable>
          </el-input>
        </el-col>
    </el-row>

      <!-- 密码 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          密码:
        </el-col>
        <el-col :span="12">
          <el-input
            placeholder="请输入内容"
            v-model="input"
            clearable>
          </el-input>
        </el-col>
    </el-row>

      <!-- 确认密码 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          确认密码
        </el-col>
        <el-col :span="12">
          <el-input
            placeholder="请输入内容"
            v-model="input"
            clearable>
          </el-input>
        </el-col>
    </el-row>

      <!-- 角色 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          角色
        </el-col>
        <el-col :span="12">
          <el-select v-model="value" clearable placeholder="请选择" style="width:100%">
            <el-option
              v-for="item in optionsRole"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-col>
    </el-row>

      <!-- 学号/工号 -->
      <el-row type="flex" class="row-bg row-margin" justify="center">
        <el-col
          :span="4"
          class="title">
          学号/工号
        </el-col>
        <el-col :span="12">
          <el-input
            placeholder="请输入内容"
            v-model="input"
            clearable>
          </el-input>
        </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      input: '',
      value: '',
      optionsRole: [
        {
          value: 1,
          label: '管理员',
        },
        {
          value: 2,
          label: '销售员',
        },
      ],
    }
  },
}
</script>
<style scoped>
  .title {
    display: grid;
    place-items: center;
  }
  .row-margin {
    margin-bottom: 10px;
  }
</style>